package org.adorsys.aderp.orga.service;

import java.util.List;

import org.adorsys.aderp.orga.domain.OrgaResource;
import org.adorsys.aderp.orga.domain.ResResRelation;
import org.adorsys.aderp.orga.domain.ResourceRelationRole;
import org.springframework.data.domain.Page;
import org.springframework.roo.addon.layers.service.RooService;

@RooService(domainTypes = { org.adorsys.aderp.orga.domain.ResResRelation.class })
public interface ResResRelationService {
    
	List<ResResRelation> findByOrgaResource(OrgaResource orgaResource);
	
	List<ResResRelation> findByTargetResource(OrgaResource orgaResource);

	Page<ResResRelation> findByResourcePage(OrgaResource orgaResource,Integer page, Integer size);

	Page<ResResRelation> findByTargetResourcePage(OrgaResource orgaResource,Integer page, Integer size);

	Page<ResResRelation> searchResResRelation(OrgaResource orgaResource, OrgaResource targetResource, ResourceRelationRole relationRole,Integer page, Integer size);

}
